package zuoye.test5;

class Pencil extends Pen {
    public Pencil(float price, String color) {
        super(price, color);
    }

    @Override
    public void write() {
        System.out.println("现在使用的是价格为" + getPrice() + "的" + getColor() + "颜色的铅笔");
    }
}